<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>首页</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="Premium Multipurpose Admin & Dashboard Template" name="description">
    <meta content="Themesdesign" name="author">

    <!-- datepicker -->
    <link href="/static/css/datepicker.min.css" rel="stylesheet" type="text/css">
    <!-- jvectormap -->
    <link href="/static/css/jqvmap.min.css" rel="stylesheet">
    <!-- Bootstrap Css -->
    <link href="/static/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <!-- Icons Css -->
    <link href="/static/css/icons.min.css" rel="stylesheet" type="text/css">
    <!-- App Css-->
    <link href="/static/css/app.min.css" rel="stylesheet" type="text/css">
</head>

<body data-topbar="colored">
<!-- Begin page -->
<div id="layout-wrapper">
    <!-- 顶部信息 -->
    <header id="page-topbar">
        <div class="navbar-header">
            <!-- 顶部左侧信息 -->
            <div class="d-flex">
                <!-- LOGO -->
                <div class="navbar-brand-box">
                    <a href="" class="logo logo-dark">
                        <span class="logo-sm">
                            <img src="/static/picture/logo-sm-dark.png" alt="" height="22">
                        </span>
                        <span class="logo-lg">
                            <img src="/static/picture/logo-dark.png" alt="" height="20">
                        </span>
                    </a>

                    <a href="" class="logo logo-light">
                        <span class="logo-sm">
                            <img src="/static/picture/logo-sm-light.png" alt="" height="22">
                        </span>
                        <span class="logo-lg">
                            <img src="/static/picture/logo-light.png" alt="" height="20">
                        </span>
                    </a>
                </div>

                <!-- 显示/隐藏 导航菜单按钮 -->
                <button type="button" class="btn btn-sm px-3 font-size-24 header-item waves-effect" id="vertical-menu-btn">
                    <i class="mdi mdi-backburger"></i>
                </button>
            </div>
            <!-- 顶部右侧信息 -->
            <div class="d-flex">
                <div class="dropdown d-inline-block">
                    <button type="button" class="btn header-item waves-effect" id="page-header-user-dropdown"
                            data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        <img class="rounded-circle header-profile-user" src="/static/picture/avatar-1.jpg"
                             alt="Header Avatar">
                        <span class="d-none d-sm-inline-block ml-1">{{ username }}</span>
                        <i class="mdi mdi-chevron-down d-none d-sm-inline-block"></i>
                    </button>
                    <div class="dropdown-menu dropdown-menu-right">
                        <a class="dropdown-item" href="/user/logOut">
                            <i class="mdi mdi-logout font-size-16 align-middle mr-1"></i>
                            退出登录
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </header>

    <!-- ========== Left Sidebar Start 侧边导航栏========== -->
    <div class="vertical-menu">
        <div data-simplebar="" class="h-100">
            <!--- Sidemenu -->
            <div id="sidebar-menu">
                <!-- Left Menu Start -->
                <ul class="metismenu list-unstyled" id="side-menu">
                    <li class="menu-title">首页菜单</li>
                    <li class="mm-active">
                        <a href="#" class="waves-effect active">
                            <div class="d-inline-block icons-sm mr-1"><i class="uim uim-airplay"></i></div>
                            <span>首页</span>
                        </a>
                    </li>
                    <li>
                        <a href="/page/search" class=" waves-effect">
                            <div class="d-inline-block icons-sm mr-1"><i class="uim uim-schedule"></i></div>
                            <span>搜索分类</span>
                        </a>
                    </li>
                    <li>
                        <a href="/page/table" class="waves-effect">
                            <div class="d-inline-block icons-sm mr-1"><i class="uim uim-comment-message"></i></div>
                            <span>数据操作</span>
                        </a>
                    </li>

                    <li class="menu-title">数据可视化</li>
                    <li>
                        <a href="/page/hoursePriceChar" class="waves-effect">
                            <div class="d-inline-block icons-sm mr-1"><i class="uim uim-box"></i></div>
                            <span>房屋价格分析</span>
                        </a>
                    </li>
                    <li>
                        <a href="/page/hourseDetailChar" class="waves-effect">
                            <div class="d-inline-block icons-sm mr-1"><i class="uim uim-layer-group"></i></div>
                            <span>房屋详情分析</span>
                        </a>
                    </li>
                    <li>
                        <a href="/page/hourseTypeChar" class="waves-effect">
                            <div class="d-inline-block icons-sm mr-1"><i class="uim uim-object-ungroup"></i></div>
                            <span>房屋类型分析</span>
                        </a>
                    </li>
                    <li>
                        <a href="/page/hourseOtherChar" class="waves-effect">
                            <div class="d-inline-block icons-sm mr-1"><i class="uim uim-table"></i></div>
                            <span>房屋其他分析</span>
                        </a>
                    </li>

                    <li class="menu-title">词云图</li>
                    <li>
                        <a href="/page/companyWordCloud" class="waves-effect">
                            <div class="d-inline-block icons-sm mr-1"><i class="uim uim-box"></i></div>
                            <span>公司词云图</span>
                        </a>
                    </li>
                    <li>
                        <a href="/page/tagsWordCloud" class="waves-effect">
                            <div class="d-inline-block icons-sm mr-1"><i class="uim uim-layer-group"></i></div>
                            <span>标签词云图</span>
                        </a>
                    </li>

                    <li class="menu-title">人工智能</li>
                    <li>
                        <a href="/page/pricePrediction" class="waves-effect">
                            <div class="d-inline-block icons-sm mr-1"><i class="uim uim-box"></i></div>
                            <span>房价预测</span>
                        </a>
                    </li>
                </ul>
            </div>
            <!-- Sidebar -->
        </div>
    </div>
    <!-- Left Sidebar End -->

    <!-- ============================================================== -->
    <!-- Start right Content here 主要内容区域-->
    <!-- ============================================================== -->
    <div class="main-content">
        <div class="page-content">
            <!-- Page-Title -->
            <div class="page-title-box">
                <div class="container-fluid">
                    <div class="row align-items-center">
                        <div class="col-md-8">
                            <h4 class="page-title mb-1">首页</h4>
                            <ol class="breadcrumb m-0">
                                <li class="breadcrumb-item active">欢迎来到【链家网房屋数据分析预测系统】</li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>
            <!-- end page title end breadcrumb -->

            <div class="page-content-wrapper">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-xl-4">
                            <div class="card">
                                <div class="card-body">
                                    <div class="row">
                                        <div class="col-6">
                                            <h5>欢迎回来 !</h5>
                                            <p class="text-muted">{{ username }} 总预测数7个</p>
                                            <div class="mt-4">
                                                <a href="/page/pricePrediction" class="btn btn-primary btn-sm">开始预测 <i class="mdi mdi-arrow-right ml-1"></i></a>
                                            </div>
                                        </div>

                                        <div class="col-5 ml-auto">
                                            <div>
                                                <img src="/static/picture/widget-img.png" alt="" class="img-fluid">
                                            </div>
                                        </div>
                                    </div>
                                    <!-- end row -->
                                </div>
                            </div>

                            <div class="card">
                                <div class="card-body">
                                    <h5 class="header-title mb-4">预测统计</h5>
                                    <div class="media">
                                        <div class="media-body">
                                            <p class="text-muted mb-2">预测最贵房价</p>
                                            <h4>$ {{ predMaxHoursePrice }}元</h4>
                                        </div>
                                        <!-- <div dir="ltr" class="ml-2">
                                            <input data-plugin="knob" data-width="56" data-height="56"
                                                   data-linecap="round" data-displayinput="false" data-fgcolor="#3051d3"
                                                   value="56" data-skin="tron" data-angleoffset="56"
                                                   data-readonly="true" data-thickness=".17">
                                        </div> -->
                                    </div>
                                    <hr>
                                    <div class="media">
                                        <div class="media-body">
                                            <p class="text-muted">最多城市预测</p>
                                            <h5 class="mb-0">{{ predMostCity }}</h5>
                                        </div>
                                        <!-- <div class="align-self-end ml-2">
                                            <a href="#" class="btn btn-primary btn-sm">View more</a>
                                        </div> -->
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="col-xl-8">
                            <div class="card">
                                <div class="card-body">
                                    <h5 class="header-title mb-4">城市平均房价-地图</h5>
                                    <!-- TODO: 中国地图加载不出来, echart.js的版本是4.7.0 -->
                                    <div id="main" class="apex-charts" style="width: 100%; height: 350px;"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- end row -->

                    <div class="row">
                        <!-- 数据标签 -->
                        <div class="col-lg-4">
                            <div class="card">
                                <div class="card-header bg-transparent p-3">
                                    <h5 class="header-title mb-0">数据标签</h5>
                                </div>
                                <ul class="list-group list-group-flush">
                                    <li class="list-group-item">
                                        <div class="media my-2">
                                            <div class="media-body">
                                                <p class="text-muted mb-2">数据总量</p>
                                                <h5 class="mb-0">{{ total }} 条</h5>
                                            </div>
                                            <div class="icons-lg ml-2 align-self-center">
                                                <i class="uim uim-layer-group"></i>
                                            </div>
                                        </div>
                                    </li>
                                    <li class="list-group-item">
                                        <div class="media my-2">
                                            <div class="media-body">
                                                <p class="text-muted mb-2">价格最高</p>
                                                <h5 class="mb-0">$ {{ maxPrice }} 元/平</h5>
                                            </div>
                                            <div class="icons-lg ml-2 align-self-center">
                                                <i class="uim uim-analytics"></i>
                                            </div>
                                        </div>
                                    </li>
                                    <li class="list-group-item">
                                        <div class="media my-2">
                                            <div class="media-body">
                                                <p class="text-muted mb-2">最多房屋类型</p>
                                                <h5 class="mb-0">{{ mostHourseType }}</h5>
                                            </div>
                                            <div class="icons-lg ml-2 align-self-center">
                                                <i class="uim uim-ruler"></i>
                                            </div>
                                        </div>
                                    </li>
                                    <li class="list-group-item">
                                        <div class="media my-2">
                                            <div class="media-body">
                                                <p class="text-muted mb-2">最多售房情况</p>
                                                <h5 class="mb-0">{{ mostSaleStatus }}</h5>
                                            </div>
                                            <div class="icons-lg ml-2 align-self-center">
                                                <i class="uim uim-box"></i>
                                            </div>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <!-- 各省房源个数 -->
                        <div class="col-lg-4">
                            <div class="card">
                                <div class="card-body">
                                    <h5 class="header-title mb-4">各城市房源个数</h5>
                                    <div id="main-radar" style="width: 100%; height: 340px;"></div>
                                </div>
                            </div>
                        </div>
                        <!-- 楼盘名称词云 -->
                        <div class="col-lg-4">
                            <div class="card">
                                <div class="card-body">
                                    <h5 class="header-title">楼盘名称词云图</h5>
                                    <img src="/static/cloudImage/titleCloud.png" alt="" style="width: 100%; height: 340px;">
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- end row -->

                    <div class="row">
                        <div class="col-lg-12">
                            <div class="card">
                                <div class="card-body">
                                    <h5 class="header-title mb-4">预测结果表格</h5>
                                    <!-- TODO: 预测结果表格数据 -->
                                    <div class="table-responsive">
                                        <table class="table table-centered table-hover mb-0">
                                            <thead>
                                            <tr>
                                                <th scope="col">ID</th>
                                                <th scope="col">城市</th>
                                                <th scope="col">价格</th>
                                                <th scope="col">用户</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <tr>
                                                <th scope="row">
                                                    <a href="#"># 1</a>
                                                </th>
                                                <td>上海</td>
                                                <td>$124</td>
                                                <td>沐锦</td>
                                            </tr>

                                            <tr>
                                                <th scope="row">
                                                    <a href="#"># 1</a>
                                                </th>
                                                <td>上海</td>
                                                <td>$124</td>
                                                <td>沐锦</td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <hr>
                                    <!-- TODO: 翻页组件 -->
                                    <div class="mt-4">
                                        <ul class="pagination pagination-rounded justify-content-center mb-0">
                                            <li class="page-item disabled">
                                                <a class="page-link" href="#" aria-label="Previous">
                                                    <i class="mdi mdi-chevron-left"></i>
                                                </a>
                                            </li>
                                            <li class="page-item"><a class="page-link" href="#">1</a></li>
                                            <li class="page-item active"><a class="page-link" href="#">2</a></li>
                                            <li class="page-item"><a class="page-link" href="#">3</a></li>
                                            <li class="page-item"><a class="page-link" href="#">4</a></li>
                                            <li class="page-item">
                                                <a class="page-link" href="#" aria-label="Next">
                                                    <i class="mdi mdi-chevron-right"></i>
                                                </a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- end row -->
                </div>
                <!-- container-fluid -->
            </div>
            <!-- end page-content-wrapper -->
        </div>
        <!-- End Page-content -->
        
        <footer class="footer">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-6">
                        2024 © 沐锦
                    </div>
                    <div class="col-sm-6">
                        <div class="text-sm-right d-none d-sm-block">
                            Copyright &copy; 2024.<a target="_blank" href="#">链家网-房屋数据分析预测系统</a>
                        </div>
                    </div>
                </div>
            </div>
        </footer>
    </div>
    <!-- end main content-->
</div>
<!-- END layout-wrapper -->

<!-- Right Sidebar -->
<div class="right-bar">
    <div data-simplebar="" class="h-100">

        <!-- Nav tabs -->
        <ul class="nav nav-tabs nav-tabs-custom rightbar-nav-tab nav-justified" role="tablist">
            <li class="nav-item">
                <a class="nav-link py-3 active" data-toggle="tab" href="#chat-tab" role="tab">
                    <i class="mdi mdi-message-text font-size-22"></i>
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link py-3" data-toggle="tab" href="#tasks-tab" role="tab">
                    <i class="mdi mdi-format-list-checkbox font-size-22"></i>
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link py-3" data-toggle="tab" href="#settings-tab" role="tab">
                    <i class="mdi mdi-settings font-size-22"></i>
                </a>
            </li>
        </ul>

        <!-- Tab panes -->
        <div class="tab-content text-muted">
            <div class="tab-pane active" id="chat-tab" role="tabpanel">

                <form class="search-bar py-4 px-3">
                    <div class="position-relative">
                        <input type="text" class="form-control" placeholder="Search...">
                        <span class="mdi mdi-magnify"></span>
                    </div>
                </form>

                <h6 class="px-4 py-3 mt-2 bg-light">Group Chats</h6>

                <div class="p-2">
                    <a href="javascript: void(0);" class="text-reset notification-item pl-3 mb-2 d-block">
                        <i class="mdi mdi-checkbox-blank-circle-outline mr-1 text-success"></i>
                        <span class="mb-0 mt-1">App Development</span>
                    </a>

                    <a href="javascript: void(0);" class="text-reset notification-item pl-3 mb-2 d-block">
                        <i class="mdi mdi-checkbox-blank-circle-outline mr-1 text-warning"></i>
                        <span class="mb-0 mt-1">Office Work</span>
                    </a>

                    <a href="javascript: void(0);" class="text-reset notification-item pl-3 mb-2 d-block">
                        <i class="mdi mdi-checkbox-blank-circle-outline mr-1 text-danger"></i>
                        <span class="mb-0 mt-1">Personal Group</span>
                    </a>

                    <a href="javascript: void(0);" class="text-reset notification-item pl-3 d-block">
                        <i class="mdi mdi-checkbox-blank-circle-outline mr-1"></i>
                        <span class="mb-0 mt-1">Freelance</span>
                    </a>
                </div>

                <h6 class="px-4 py-3 mt-4 bg-light">Favourites</h6>

                <div class="p-2">
                    <a href="javascript: void(0);" class="text-reset notification-item">
                        <div class="media">
                            <div class="position-relative align-self-center mr-3">
                                <img src="/static/picture/avatar-10.jpg" class="rounded-circle avatar-xs"
                                     alt="user-pic">
                                <i class="mdi mdi-circle user-status online"></i>
                            </div>
                            <div class="media-body overflow-hidden">
                                <h6 class="mt-0 mb-1">Andrew Mackie</h6>
                                <div class="font-size-12 text-muted">
                                    <p class="mb-0 text-truncate">It will seem like simplified English.</p>
                                </div>
                            </div>
                        </div>
                    </a>

                    <a href="javascript: void(0);" class="text-reset notification-item">
                        <div class="media">
                            <div class="position-relative align-self-center mr-3">
                                <img src="/static/picture/avatar-1.jpg" class="rounded-circle avatar-xs" alt="user-pic">
                                <i class="mdi mdi-circle user-status away"></i>
                            </div>
                            <div class="media-body overflow-hidden">
                                <h6 class="mt-0 mb-1">Rory Dalyell</h6>
                                <div class="font-size-12 text-muted">
                                    <p class="mb-0 text-truncate">To an English person, it will seem like simplified</p>
                                </div>
                            </div>
                        </div>
                    </a>

                    <a href="javascript: void(0);" class="text-reset notification-item">
                        <div class="media">
                            <div class="position-relative align-self-center mr-3">
                                <img src="/static/picture/avatar-9.jpg" class="rounded-circle avatar-xs" alt="user-pic">
                                <i class="mdi mdi-circle user-status busy"></i>
                            </div>
                            <div class="media-body overflow-hidden">
                                <h6 class="mt-0 mb-1">Jaxon Dunhill</h6>
                                <div class="font-size-12 text-muted">
                                    <p class="mb-0 text-truncate">To achieve this, it would be necessary.</p>
                                </div>
                            </div>
                        </div>
                    </a>
                </div>

                <h6 class="px-4 py-3 mt-4 bg-light">Other Chats</h6>

                <div class="p-2 pb-4">
                    <a href="javascript: void(0);" class="text-reset notification-item">
                        <div class="media">
                            <div class="position-relative align-self-center mr-3">
                                <img src="/static/picture/avatar-2.jpg" class="rounded-circle avatar-xs" alt="user-pic">
                                <i class="mdi mdi-circle user-status online"></i>
                            </div>
                            <div class="media-body overflow-hidden">
                                <h6 class="mt-0 mb-1">Jackson Therry</h6>
                                <div class="font-size-12 text-muted">
                                    <p class="mb-0 text-truncate">Everyone realizes why a new common language.</p>
                                </div>
                            </div>
                        </div>
                    </a>

                    <a href="javascript: void(0);" class="text-reset notification-item">
                        <div class="media">
                            <div class="position-relative align-self-center mr-3">
                                <img src="/static/picture/avatar-4.jpg" class="rounded-circle avatar-xs" alt="user-pic">
                                <i class="mdi mdi-circle user-status away"></i>
                            </div>
                            <div class="media-body overflow-hidden">
                                <h6 class="mt-0 mb-1">Charles Deakin</h6>
                                <div class="font-size-12 text-muted">
                                    <p class="mb-0 text-truncate">The languages only differ in their grammar.</p>
                                </div>
                            </div>
                        </div>
                    </a>

                    <a href="javascript: void(0);" class="text-reset notification-item">
                        <div class="media">
                            <div class="position-relative align-self-center mr-3">
                                <img src="/static/picture/avatar-5.jpg" class="rounded-circle avatar-xs" alt="user-pic">
                                <i class="mdi mdi-circle user-status online"></i>
                            </div>
                            <div class="media-body overflow-hidden">
                                <h6 class="mt-0 mb-1">Ryan Salting</h6>
                                <div class="font-size-12 text-muted">
                                    <p class="mb-0 text-truncate">If several languages coalesce the grammar of the
                                        resulting.</p>
                                </div>
                            </div>
                        </div>
                    </a>

                    <a href="javascript: void(0);" class="text-reset notification-item">
                        <div class="media">
                            <div class="position-relative align-self-center mr-3">
                                <img src="/static/picture/avatar-6.jpg" class="rounded-circle avatar-xs" alt="user-pic">
                                <i class="mdi mdi-circle user-status online"></i>
                            </div>
                            <div class="media-body overflow-hidden">
                                <h6 class="mt-0 mb-1">Sean Howse</h6>
                                <div class="font-size-12 text-muted">
                                    <p class="mb-0 text-truncate">It will seem like simplified English.</p>
                                </div>
                            </div>
                        </div>
                    </a>

                    <a href="javascript: void(0);" class="text-reset notification-item">
                        <div class="media">
                            <div class="position-relative align-self-center mr-3">
                                <img src="/static/picture/avatar-7.jpg" class="rounded-circle avatar-xs" alt="user-pic">
                                <i class="mdi mdi-circle user-status busy"></i>
                            </div>
                            <div class="media-body overflow-hidden">
                                <h6 class="mt-0 mb-1">Dean Coward</h6>
                                <div class="font-size-12 text-muted">
                                    <p class="mb-0 text-truncate">The new common language will be more simple.</p>
                                </div>
                            </div>
                        </div>
                    </a>

                    <a href="javascript: void(0);" class="text-reset notification-item">
                        <div class="media">
                            <div class="position-relative align-self-center mr-3">
                                <img src="/static/picture/avatar-8.jpg" class="rounded-circle avatar-xs" alt="user-pic">
                                <i class="mdi mdi-circle user-status away"></i>
                            </div>
                            <div class="media-body overflow-hidden">
                                <h6 class="mt-0 mb-1">Hayley East</h6>
                                <div class="font-size-12 text-muted">
                                    <p class="mb-0 text-truncate">One could refuse to pay expensive translators.</p>
                                </div>
                            </div>
                        </div>
                    </a>
                </div>

            </div>

            <div class="tab-pane" id="tasks-tab" role="tabpanel">
                <h6 class="p-3 mb-0 mt-4 bg-light">Working Tasks</h6>

                <div class="p-2">
                    <a href="javascript: void(0);" class="text-reset item-hovered d-block p-3">
                        <p class="text-muted mb-0">App Development<span class="float-right">75%</span></p>
                        <div class="progress mt-2" style="height: 4px;">
                            <div class="progress-bar bg-success" role="progressbar" style="width: 75%"
                                 aria-valuenow="75" aria-valuemin="0" aria-valuemax="100"></div>
                        </div>
                    </a>

                    <a href="javascript: void(0);" class="text-reset item-hovered d-block p-3">
                        <p class="text-muted mb-0">Database Repair<span class="float-right">37%</span></p>
                        <div class="progress mt-2" style="height: 4px;">
                            <div class="progress-bar bg-info" role="progressbar" style="width: 37%" aria-valuenow="37"
                                 aria-valuemin="0" aria-valuemax="100"></div>
                        </div>
                    </a>

                    <a href="javascript: void(0);" class="text-reset item-hovered d-block p-3">
                        <p class="text-muted mb-0">Backup Create<span class="float-right">52%</span></p>
                        <div class="progress mt-2" style="height: 4px;">
                            <div class="progress-bar bg-warning" role="progressbar" style="width: 52%"
                                 aria-valuenow="52" aria-valuemin="0" aria-valuemax="100"></div>
                        </div>
                    </a>
                </div>

                <h6 class="p-3 mb-0 mt-4 bg-light">Upcoming Tasks</h6>

                <div class="p-2">
                    <a href="javascript: void(0);" class="text-reset item-hovered d-block p-3">
                        <p class="text-muted mb-0">Sales Reporting<span class="float-right">12%</span></p>
                        <div class="progress mt-2" style="height: 4px;">
                            <div class="progress-bar bg-danger" role="progressbar" style="width: 12%" aria-valuenow="12"
                                 aria-valuemin="0" aria-valuemax="100"></div>
                        </div>
                    </a>

                    <a href="javascript: void(0);" class="text-reset item-hovered d-block p-3">
                        <p class="text-muted mb-0">Redesign Website<span class="float-right">67%</span></p>
                        <div class="progress mt-2" style="height: 4px;">
                            <div class="progress-bar bg-primary" role="progressbar" style="width: 67%"
                                 aria-valuenow="67" aria-valuemin="0" aria-valuemax="100"></div>
                        </div>
                    </a>

                    <a href="javascript: void(0);" class="text-reset item-hovered d-block p-3">
                        <p class="text-muted mb-0">New Admin Design<span class="float-right">84%</span></p>
                        <div class="progress mt-2" style="height: 4px;">
                            <div class="progress-bar bg-success" role="progressbar" style="width: 84%"
                                 aria-valuenow="84" aria-valuemin="0" aria-valuemax="100"></div>
                        </div>
                    </a>
                </div>

                <div class="p-3 mt-2">
                    <a href="javascript: void(0);" class="btn btn-success btn-block waves-effect waves-light">Create
                        Task</a>
                </div>

            </div>
            <div class="tab-pane" id="settings-tab" role="tabpanel">
                <h6 class="px-4 py-3 bg-light">General Settings</h6>

                <div class="p-4">
                    <h6 class="font-weight-medium">Online Status</h6>
                    <div class="custom-control custom-switch mb-1">
                        <input type="checkbox" class="custom-control-input" id="settings-check1" name="settings-check1"
                               checked="">
                        <label class="custom-control-label font-weight-normal" for="settings-check1">Show your status to
                            all</label>
                    </div>

                    <h6 class="mt-4">Auto Updates</h6>
                    <div class="custom-control custom-switch mb-1">
                        <input type="checkbox" class="custom-control-input" id="settings-check2" name="settings-check2"
                               checked="">
                        <label class="custom-control-label font-weight-normal" for="settings-check2">Keep up to
                            date</label>
                    </div>

                    <h6 class="mt-4">Backup Setup</h6>
                    <div class="custom-control custom-switch mb-1">
                        <input type="checkbox" class="custom-control-input" id="settings-check3" name="settings-check3">
                        <label class="custom-control-label font-weight-normal" for="settings-check3">Auto backup</label>
                    </div>

                </div>

                <h6 class="px-4 py-3 mt-2 bg-light">Advanced Settings</h6>

                <div class="p-4">
                    <h6 class="font-weight-medium">Application Alerts</h6>
                    <div class="custom-control custom-switch mb-1">
                        <input type="checkbox" class="custom-control-input" id="settings-check4" name="settings-check4"
                               checked="">
                        <label class="custom-control-label font-weight-normal" for="settings-check4">Email
                            Notifications</label>
                    </div>

                    <div class="custom-control custom-switch mb-1">
                        <input type="checkbox" class="custom-control-input" id="settings-check5" name="settings-check5">
                        <label class="custom-control-label font-weight-normal" for="settings-check5">SMS
                            Notifications</label>
                    </div>

                    <h6 class="mt-4">API</h6>
                    <div class="custom-control custom-switch mb-1">
                        <input type="checkbox" class="custom-control-input" id="settings-check6" name="settings-check6">
                        <label class="custom-control-label font-weight-normal" for="settings-check6">Enable
                            access</label>
                    </div>

                </div>
            </div>
        </div>

    </div> <!-- end slimscroll-menu-->
</div>
<!-- /Right-bar -->

<!-- Right bar overlay-->
<div class="rightbar-overlay"></div>

<!-- JAVASCRIPT -->
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/bootstrap.bundle.min.js"></script>
<script src="/static/js/metisMenu.min.js"></script>
<script src="/static/js/simplebar.min.js"></script>
<script src="/static/js/waves.min.js"></script>
<script src="/static/js/bundle.js"></script>
<!-- datepicker -->
<script src="/static/js/datepicker.min.js"></script>
<script src="/static/js/datepicker.en.js"></script>
<!-- apexcharts -->
<script src="/static/js/apexcharts.min.js"></script>
<script src="/static/js/jquery.knob.min.js"></script>
<!-- Jq vector map -->
<script src="/static/js/jquery.vmap.min.js"></script>
<script src="/static/js/jquery.vmap.usa.js"></script>
<script src="/static/js/dashboard.init.js"></script>
<script src="/static/js/app.js"></script>
<!-- echarts & map -->
<script src="/static/echarts.js"></script>
<script src="/static/china.js"></script>

<script>
    // TODO: 地图加载不显示
    console.log(echarts.version);
    var chartDom = document.getElementById('main');
    var myChart = echarts.init(chartDom);
    var option;

    option = {
        title: {
            text: '省份平均房价',
            left: 'center',
            textStyle: {
                color: '#333',
                fontWeight: 'bold'
            }
        },
        tooltip: {
            trigger: 'item',
            formatter: (params) => {
                return params.name + '<br>平均房价:' + params.value + ' 元'
            }
        },
        visualMap: {
            min: 0,
            max: 50000,
            text: ['高', '低'],
            realtime: true,
            calculable: true,
            inRange: {
                color: ['#e0ffff', '#008c8c']
            }
        },
        series: [
            {
                type: 'map',
                map: 'china',
                label: {
                    show: true,
                    color: '#000',
                    fontSize: 12,
                },
                emphasis: {
                    label: {
                        show: true
                    }
                },
                zoom: 1.2,
                roam: true,
                data: [
                    {'name': '湖南省', 'value': 10000},
                ]
            }
        ]
    };

    option && myChart.setOption(option);

</script>

<script>
    var chartDom = document.getElementById('main-radar');
    var myChart = echarts.init(chartDom);
    var option;

    option = {
        title: {},
        legend: {},
        tooltip: {
            trigger: 'item'
        },
        radar: {
            // shape: 'circle',
            indicator: {{ cityRadarIndicator | safe }},
            radius: 80
        },
        series: [
            {
                name: '房源个数',
                type: 'radar',
                data: [
                    {
                        value: {{ cityRadarData }},
                        name: '房源个数'
                    }
                ]
            }
        ]
    };

    option && myChart.setOption(option);

</script>

</body>
</html>
